package inheritance.a;

import inheritance.b.Son;
import inheritance.*;

/**
 *
 * @author ivan
 */
public class Father {

    protected String fatherValue;

    public void work(Father father) {
        System.out.println(father.fatherValue);
    }

    public void work(Son son) {
        System.out.println(this.fatherValue);
        System.out.println(son.fatherValue);
    }
}
